import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  { path: '/', redirect: '/yiyan' },
  { path: '/yiyan', component: () => import('./pages/YiYan.vue') },
  { path: '/yigu', component: () => import('./pages/YiGu.vue') },
  { path: '/yixiao', component: () => import('./pages/YiXiao.vue') },
  { path: '/xhy', component: () => import('./pages/XieHouYu.vue') }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

createApp(App).use(router).mount('#app')
